<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <link rel="stylesheet" href="./style.css">
    <link rel="stylesheet" href="./tab.css">
  </head>
  <body>
    <div class="tabsbox" id="tab">
      <!-- tab栏 -->
      <nav class="nav">
        <ul>
          <li class="liactive">
            <span> 测试1</span>
            <span class="iconfont icon-guanbi"></span>
          </li>
          <li>
            <span> 测试2</span>
            <span class="iconfont icon-guanbi"></span>
          </li>
          <li>
            <span> 测试3</span>
            <span class="iconfont icon-guanbi"></span>
          </li>
        </ul>
        <div class="tabadd">
          <span>+</span>
        </div>
      </nav>
      <!-- tab内容 -->
      <div class="tabscon">
        <section class="conactive">测试1</section>
        <section>测试2</section>
        <section>测试3</section>
      </div>
    <script>
      /* 
    面向对象 tab栏切换
    1：点击tab栏，可以切换效果
    2：点击+号，可以添加tab项和内容项
    3：点击x号，可以删除当前tab项和内容项
    4：双击tab项文字或者内容项文字可以修改内容
    */
    </script>

    <script src="./index.js"></script>
  </body>
</html>
